import request from '@/utils/request'

// 查询废气治理设施列表
export function listAtmosphere(query) {
  return request({
    url: '/facilities/atmosphere/list',
    method: 'get',
    params: query
  })
}

// 查询废气治理设施详细
export function getAtmosphere(etfId) {
  return request({
    url: '/facilities/atmosphere/' + etfId,
    method: 'get'
  })
}

// 新增废气治理设施
export function addAtmosphere(data) {
  return request({
    url: '/facilities/atmosphere',
    method: 'post',
    data: data
  })
}

// 修改废气治理设施
export function updateAtmosphere(data) {
  return request({
    url: '/facilities/atmosphere',
    method: 'put',
    data: data
  })
}

// 删除废气治理设施
export function delAtmosphere(etfId) {
  return request({
    url: '/facilities/atmosphere/' + etfId,
    method: 'delete'
  })
}

// 导出废气治理设施
export function exportAtmosphere(query) {
  return request({
    url: '/facilities/atmosphere/export',
    method: 'get',
    params: query
  })
}